//package com.zhuss.timer;
//
//import java.time.LocalDateTime;
//import java.util.List;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//import com.zhuss.bean.vo.core.building.DetailBuildingVo;
//import com.zhuss.bean.vo.core.building.DetaillBuildingVo;
//import com.zhuss.bean.vo.core.community.DetaillCommunityVo;
//import com.zhuss.bean.vo.core.room.DetailRoomVo;
//import com.zhuss.bean.vo.core.unit.DetailUnitVo;
//import com.zhuss.bean.vo.core.village.DetailVillageVo;
//import com.zhuss.core.datasource1.dao.ext.BuildingDao;
//import com.zhuss.core.datasource1.dao.ext.RoomDao;
//import com.zhuss.core.datasource1.dao.ext.UnitDao;
//import com.zhuss.core.datasource1.dao.ext.VillageDao;
//import com.zhuss.core.datasource1.entity.Village;
//import com.zhuss.core.datasource2.dao.ext.lBuildingDao;
//import com.zhuss.core.datasource2.dao.ext.lCommunityDao;
//import com.zhuss.util.JsonUtil;
//
//
///**
// * village
// * @author Administrator
// *
// */
//
//@Component
//@Configuration  
//@EnableScheduling
//public class VillageTask {
//	
//	@Autowired
//	private VillageDao villageDao;
//	
//	@Autowired
//	private BuildingDao buildingDao;
//	
//	@Autowired
//	private UnitDao unitDao;
//	
//	@Autowired
//	private RoomDao roomDao;
//	
//	@Autowired
//	private lCommunityDao lCommunityDao;
//	
//	@Autowired
//	private lBuildingDao lBuildingDao;
//	
////	@Scheduled(cron = "1 1 1 * * ?")
//	@Scheduled(cron = "0/50 * * * * ?")
//	private void configureTasks() {
//		
//		DetailVillageVo result = villageDao.detail(1l);
//		System.out.println(JsonUtil.toJson(result));
//		
//		DetailBuildingVo build = buildingDao.detail(21l);
//		System.out.println(JsonUtil.toJson(build));
//		
//		DetailUnitVo unit = unitDao.detail(578l);
//		System.out.println(JsonUtil.toJson(unit));
//		
//		DetailRoomVo room = roomDao.detail(1679l);
//		System.out.println(JsonUtil.toJson(room));
//		
//		DetaillCommunityVo c = lCommunityDao.detail(1l);
//		System.out.println(JsonUtil.toJson(c));
//		
//		DetaillBuildingVo b = lBuildingDao.detail(21l);
//		System.out.println(JsonUtil.toJson(b));
//		
//		Long maxIncr = villageDao.selectMaxIncr();
//		List<Village> villageList = lCommunityDao.queryList(maxIncr);
//		for (Village v : villageList) {
//			villageDao.create(v);
//		}
//		
//		System.err.println("VillageTask-------执行静态定时任务时间: " + LocalDateTime.now());
//	}
//	
//
//}
